package com.gzs.learn.payment.pay.action;

import com.gzs.learn.inf.BaseResponseDto;
import com.gzs.learn.payment.pay.ContextBase;
import com.gzs.learn.payment.pay.PaymentContext;
import com.gzs.learn.payment.pay.PaymentTypeEnum;
import org.springframework.stereotype.Component;

@Component
public class PaymentQueryAction extends BaseAction {

    @Override
    public BaseResponseDto<?> executeAction(PaymentContext<ContextBase> context) {
        PaymentTypeEnum paymentTypeEnum = context.getPaymentTypeEnum();
        switch (paymentTypeEnum) {
            case ALIPAY:
                break;
            case WECHAT:
                break;
            case UNIONPAY:
                break;
            default:
                break;
        }
        return null;
    }

}
